package com.dx.factory;

import com.dx.api.RemoteQaLogService;
import com.dx.domain.QaOperLog;
import com.dx.result.R;
import org.springframework.cloud.openfeign.FallbackFactory;

public class RemoteQaLogFactory implements FallbackFactory<RemoteQaLogService> {
    @Override
    public RemoteQaLogService create(Throwable cause) {
        return new RemoteQaLogService() {
            @Override
            public R<?> add(QaOperLog log, String source) {
                return R.fail("调用日志服务添加执行日志失败");
            }
        };
    }
}
